3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
A class should retrieve the methods passed in via the metahandler during the registration process, using the Q3ObjectHierarchy_GetMethod object system call.
Repeated calls to the Q3XObjectHierarchy_GetMethod function return all the methods for a class hierarchy.
TQ3FunctionPointer Q3XObjectHierarchy_GetMethod(
TQX3ObjectClass objectClass,
TQ3MethodType methodType);
The Q3XObjectHierarchy_GetMethod routine searches for methods, starting from the leaf class and continuing with the parent classes, for a non- NULL method type from a class. If the leaf class returns NULL for the method, its virtual metahandler is called to retrieve a method. This continues with the parent class's virtual metahandler and on up the hierarchy. When no method is found, Q3XObjectHierarchy_GetMethod returns NULL .
You can use the Q3XObjectClass_GetMethod function to get the methods for a class.
TQ3XFunctionPointer Q3XObjectClass_GetMethod(
TQ3XObjectClass objectClass,
TQ3XMethodType methodType);
The Q3XObjectClass_GetMethod function returns, in the methodType parameter, a method type for the class objectClass. The Q3XObjectClass_GetMethod function searches for non- NULL methods starting from the leaf class and continuing with the parent classes. If the leaf class returns NULL for the method, its virtual metahandler is called to retrieve a method. This continues with the parent class's virtual metahandler, and on up the hierarchy. If no method is found, Q3XObjectClass_GetMethod returns NULL .
Previous | QD3D Book | Overview | Chapter Contents | Next |